import Vue from "vue";
import App from "./App.vue";
import router from "@/router";
import store from "@/store";
import "@/mock";

import components from "./main/components";
import element from '@/main/element'
import lazyload from '@/main/lazyload'
import validate from '@/main/validate'
// 1.全局注册组件
Vue.use(components)
// 2.使用elementUI插件
Vue.use(element)
// 3.图片懒加载
Vue.use(lazyload)
// 4.校验
Vue.use(validate)
Vue.config.productionTip = false;
new Vue({
  render: (h) => h(App),
  router,
  store,

  //全局事件总线的设置
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
}).$mount("#app");
